<?php
namespace Library;

use Symfony\Component\Form\AbstractType;

class BaseForm extends AbstractType
{
    private $cancelButtonType;
    
    public function __construct($cancelIsCollapseButton = true) {
        $this->cancelButtonType = ($cancelIsCollapseButton)? 'cancel' : 'redirect';
    }
    
    public function getCancelButtonType()
    {
        return $this->cancelButtonType; 
    }
    
    public function getName()
    {
        return 'baseform';
    }    
}
